<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>活动中心页面</title>
    <link rel="stylesheet" href="../../css/reset.css">
    <style>
        body {
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0);
            font-size: 0.26rem;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
            font-family: Helvetica;
            color: #333333;
            padding-bottom: 0.5rem;
            box-sizing: border-box;
        }

        .centerImgDetail {
            width: 100%;
            height: 100%;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .activityImg {
            width: 6.15rem;
        }

        .activityClose {
            width: 0.62rem;
            margin-top: 0.23rem;
        }
    </style>
</head>

<body>
    <div class="centerImgDetail">
        <img src="../../image/newsdjog.png" class="activityImg">
        <img src="../../image/classert.png" class="activityClose">
    </div>
</body>
<script src="../../script/autosize.js"></script>
<script src="../../script/jquery_three_two_one.js"></script>
<script src="../../script/fastclick.js"></script>
<script src="../../script/dotmin.js"></script>
<script src="../../script/app.js"></script>
<script>
    apiready = function () {
        var app = new APP();
        function getActivityImg() {
            var account = app.getAccount();
            app.ajaxPro({
                url: "site/click",
                values: {
                    token: account.token
                },
                openFlower: true
            }, function (ret) {
                if (ret.code == 200) {
                    var param = {
                        name: "browser_header_win",
                        url: "https://wap.renrenmine.com/act/ipfs?uid=" + account.uid + "&lang=zh_CN&currencyCode=CNY",
                        title: "解锁IPFS云算力"
                    }
                    app.setNavBarAttrPrimary(param);
                } else {
                    app.toast(ret.message);
                }
            })
        }
        $(".activityClose").click(function () {
            app.closeF("national_day");
        })
        $(".activityImg").click(function () {
            if (!app.isLogin()) {
                // 跳转登录页面
                app.toast("该操作需要登录");
                app.goLogin();
                return;
            }
            getActivityImg();
        })
    }
</script>

</html>